import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:get/get.dart';

class ZysInputController extends GetxController {
  RxString logHttp = "www.baidu.com".obs;
  RxString useHttp = "www.baidu.com".obs;
  RxString appHttp = "www.baidu.com".obs;
  RxString wssHttp = "www.baidu.com".obs;

  static void copyToClipboard(String? text, BuildContext context) {
    Clipboard.setData(ClipboardData(text: text ?? ""));
    ScaffoldMessenger.of(context).showSnackBar(
      const SnackBar(
        content: Text('已复制到剪贴板'),
        duration: Duration(seconds: 1),
      ),
    );
  }

}


